﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace WorkStation.Frameworks.Core.CommonDataContract.Wcf
{
    /// <summary>
    /// * 查询分页返回结果
    /// </summary>
    /// <typeparam name="TResult">查询结果类型</typeparam>
    [DataContract]
    public class PageResult<TResult> where TResult : class
    {
        /// <summary>
        /// * 总记录数
        /// </summary>
        [DataMember]
        public int Total { get; set; }

        /// <summary>
        /// * 页码
        /// </summary>
        [DataMember]
        public int PageIndex { get; set; }

        /// <summary>
        /// * 每页记录数
        /// </summary>
        [DataMember]
        public int PageItemCount { get; set; }

        /// <summary>
        /// * 结果
        /// </summary>
        [DataMember]
        public TResult Result { get; set; }
    }
}
